/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * frmClientesBus.java
 *
 * Created on 02-sep-2011, 22:23:41
 */

package GUI;

import TablasAuxiliares.TAEstudioMorosidad;
import TablasAuxiliares.TATiposBien;
import TablasAuxiliares.TATiposDocumento;
import Util.FormatoFecha;
import Util.Varios;
import java.util.Calendar;
import java.util.Date;
import javax.swing.JOptionPane;

/**
 *
 * @author Javi
 */
public class frmComprasBus extends javax.swing.JDialog {

    //Referencia al formulario padre
    private frmCompras _frmPadre;

    /** Creates new form frmClientesBus */
    public frmComprasBus(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }

    /** Creates new form frmClientesBus */
    public frmComprasBus(frmCompras parent, boolean modal) {
        super(parent, modal);
        this._frmPadre = parent;
        initComponents();
        //Los combos se cargan a partir de las tablas 1 SOLA VEZ, al crear el formulario.
        this.cargarCombos();
        //Actualizo el título de la ventana
        this.setTitle( this._frmPadre.getoObjetoDatos().getsDescripTabla() + " - " + Varios.getLiteralOperacion('S') );
    }

    public void inicializaFormulario ( char cOperacion ){
        //El formulario se vacía cada vez que se entra en él
        this.inicializaControles();
        getRootPane().setDefaultButton(jButtonAceptar);
    }

    /*
     * Inicializa los combos a partir de las tablas auxiliares en forma "codigo - descripcion"
     */
    private void cargarCombos(){
        //Cargo el combo de Tipo de documento
        Varios.cargaCombo (jCBTipoDocumento, new TATiposDocumento());
        //Bien
        Varios.cargaCombo (jCBTipo, new TATiposBien());
        Varios.cargaCombo (jCBEstudioMorosidad, new TAEstudioMorosidad());
    }

    /*
     * Este método inicializa los controles de la pantalla
     */
    private void inicializaControles (){
        this.jTFIdCliente.setValue(0);
        Varios.seleccionaItemCombo (jCBTipoDocumento, "");
        this.jTFNumDocumento.setText ("");
        this.jTFNombre.setText("");
        this.jTFApellidos.setText("");
        this.jFTFFechaDesde.setValue( new Date(0));  // 01/01/1970
        this.jFTFFechaHasta.setValue( new Date(0));    //01/01/1970
        Varios.seleccionaItemCombo (jCBTipo, "");
        this.jFTFImporteDesde.setValue (0);
        this.jFTFImporteHasta.setValue (0);
        this.jRBTodas.setSelected(true);    //Por defecto todas las solicitudes
        Varios.seleccionaItemCombo (jCBEstudioMorosidad, "");
    }

    /**
     * Este método forma la condición a aplicar a partir de los valores introducidos en la pantalla
     * @return
     */
    private String formaCondicionWhere(){
        String sCondicion = "";
        if ((Integer) (this.jTFIdCliente.getValue()) != 0)
            sCondicion += " ClienteDatPers.IdCliente = " + (Integer) (this.jTFIdCliente.getValue()) + " AND ";
        if (this.jTFNombre.getText().compareTo("")!= 0)
            sCondicion += " ClienteDatPers.Nombre LIKE '" + this.jTFNombre.getText() + "%' AND ";
        if (this.jTFApellidos.getText().compareTo("")!= 0)
            sCondicion += " ClienteDatPers.Apellidos LIKE '" + this.jTFApellidos.getText() + "%' AND ";
        if (Varios.getClaveItemCombo (this.jCBTipoDocumento).compareTo("")!= 0)
            sCondicion += " ClienteDatPers.TipoDocumento = '" + Varios.getClaveItemCombo (this.jCBTipoDocumento) + "' AND ";
        if (this.jTFNumDocumento.getText().compareTo("")!= 0)
            sCondicion += " ClienteDatPers.NumDocumento LIKE '" + this.jTFNumDocumento.getText() + "%' AND ";
        //Fechas desde y hasta
        //Solamente se incluye la condición de fecha SI las fechas NO son iguales entre sí y además alguna de ellas
        //es diferente de la fecha de hoy (por defecto ambas se inicializan a la fecha de hoy)
        if ( ((Date) this.jFTFFechaHasta.getValue()).compareTo((Date) this.jFTFFechaDesde.getValue()) != 0 ||
             ((Date) this.jFTFFechaDesde.getValue()).compareTo (new Date(0)) != 0 ||
             ((Date) this.jFTFFechaHasta.getValue()).compareTo (new Date(0)) != 0) {
            sCondicion += " Compra.FechaCompra <= '" + Varios.dateToString((Date) this.jFTFFechaHasta.getValue()) + "' AND ";
            sCondicion += " Compra.FechaCompra >= '" + Varios.dateToString((Date) this.jFTFFechaDesde.getValue()) + "' AND ";
        }
        if (Varios.getClaveItemCombo (jCBTipo).compareTo("")!= 0)
            sCondicion += " Bienes.Tipo = '" + Varios.getClaveItemCombo (this.jCBTipo) + "' AND ";
        //Importe Desde y Hasta
        if ((Integer) (this.jFTFImporteDesde.getValue()) != 0)
            sCondicion += " Bienes.Importe >= " + (Integer) (this.jFTFImporteDesde.getValue()) + " AND ";
        if ((Integer) (this.jFTFImporteHasta.getValue()) != 0)
            sCondicion += " Bienes.Importe <= " + (Integer) (this.jFTFImporteHasta.getValue()) + " AND ";
        //Solicitudes de Préstamos
        if ( this.jRBDenegadas.isSelected())
            sCondicion += " Compra.Autorizada = '0' AND ";
        if ( this.jRBAutorizadas.isSelected())
            sCondicion += " Compra.Autorizada = '1' AND ";
        if ( this.jRBPendientesEval.isSelected())
            sCondicion += " Compra.Autorizada = '2' AND ";
        if (Varios.getClaveItemCombo (jCBEstudioMorosidad).compareTo("")!= 0)
            sCondicion += " Compra.EstudioMorosidad = '" + Varios.getClaveItemCombo (this.jCBEstudioMorosidad) + "' AND ";

        //Quitar el último AND de la condición
        if (sCondicion.compareTo("") != 0)
            sCondicion = sCondicion.substring(0, sCondicion.lastIndexOf("AND") );
        return sCondicion;
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jLabel36 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jCBTipoDocumento = new javax.swing.JComboBox();
        jLabel39 = new javax.swing.JLabel();
        jTFNumDocumento = new javax.swing.JTextField();
        jLabel40 = new javax.swing.JLabel();
        jTFNombre = new javax.swing.JTextField();
        jLabel41 = new javax.swing.JLabel();
        jTFApellidos = new javax.swing.JTextField();
        jButtonAceptar = new javax.swing.JButton();
        jButtonCancelar = new javax.swing.JButton();
        jTFIdCliente = new javax.swing.JFormattedTextField(new Integer(0));
        jLabel45 = new javax.swing.JLabel();
        try{
            jFTFFechaDesde = new javax.swing.JFormattedTextField( new FormatoFecha() );
            jLabel42 = new javax.swing.JLabel();
            jCBTipo = new javax.swing.JComboBox();
            jLabel29 = new javax.swing.JLabel();
            jFTFImporteDesde = new javax.swing.JFormattedTextField(new Integer(0));
            jLabel30 = new javax.swing.JLabel();
            jFTFImporteHasta = new javax.swing.JFormattedTextField(new Integer(0));
            jLabel46 = new javax.swing.JLabel();
            try{
                jFTFFechaHasta = new javax.swing.JFormattedTextField( new FormatoFecha() );
                jLabel47 = new javax.swing.JLabel();
                jCBEstudioMorosidad = new javax.swing.JComboBox();
                jRBTodas = new javax.swing.JRadioButton();
                jRBAutorizadas = new javax.swing.JRadioButton();
                jRBDenegadas = new javax.swing.JRadioButton();
                jLabel31 = new javax.swing.JLabel();
                jRBPendientesEval = new javax.swing.JRadioButton();

                buttonGroup1.add (jRBTodas);
                buttonGroup1.add (jRBAutorizadas);
                buttonGroup1.add (jRBDenegadas);
                buttonGroup1.add (jRBPendientesEval);

                setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

                jLabel36.setText("IdCliente");

                jLabel38.setText("Tipo Documento");

                jLabel39.setText("Nº de documento");

                jLabel40.setText("Nombre");

                jLabel41.setText("Apellidos");

                jButtonAceptar.setText("Aceptar");
                jButtonAceptar.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jButtonAceptarActionPerformed(evt);
                    }
                });

                jButtonCancelar.setText("Cancelar");
                jButtonCancelar.addActionListener(new java.awt.event.ActionListener() {
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        jButtonCancelarActionPerformed(evt);
                    }
                });

                jTFIdCliente.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

                jLabel45.setText("Fecha desde");

            }catch (Exception e){
                e.printStackTrace();
            }

            jLabel42.setText("Tipo de Bien");

            jCBTipo.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jCBTipoActionPerformed(evt);
                }
            });

            jLabel29.setText("Importe desde");

            jFTFImporteDesde.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

            jLabel30.setText("Importe hasta");

            jFTFImporteHasta.setHorizontalAlignment(javax.swing.JTextField.RIGHT);

            jLabel46.setText("Fecha hasta");

        }catch (Exception e){
            e.printStackTrace();
        }

        jLabel47.setText("Análisis de morosidad");

        jRBTodas.setText("Todas");
        jRBTodas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBTodasActionPerformed(evt);
            }
        });

        jRBAutorizadas.setText("Autorizadas");
        jRBAutorizadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBAutorizadasActionPerformed(evt);
            }
        });

        jRBDenegadas.setText("Denegadas");
        jRBDenegadas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBDenegadasActionPerformed(evt);
            }
        });

        jLabel31.setText("Estado solicitud préstamo");

        jRBPendientesEval.setText("Pendientes de evaluar");
        jRBPendientesEval.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jRBPendientesEvalActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(30, 30, 30)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel36)
                                .addGap(18, 18, 18)
                                .addComponent(jTFIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, 41, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel40)
                                .addGap(15, 15, 15)
                                .addComponent(jTFNombre, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                    .addComponent(jLabel38)
                                    .addGap(7, 7, 7)
                                    .addComponent(jCBTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(jLabel41)
                                        .addGap(9, 9, 9)
                                        .addComponent(jTFApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                        .addGap(282, 282, 282)
                                        .addComponent(jLabel39)
                                        .addGap(10, 10, 10)
                                        .addComponent(jTFNumDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel42)
                                .addGap(33, 33, 33)
                                .addComponent(jCBTipo, 0, 228, Short.MAX_VALUE)
                                .addGap(208, 208, 208))
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(jLabel29)
                                        .addGap(18, 18, 18)
                                        .addComponent(jFTFImporteDesde, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 160, Short.MAX_VALUE)
                                        .addComponent(jLabel30)
                                        .addGap(18, 18, 18)
                                        .addComponent(jFTFImporteHasta, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                        .addComponent(jLabel45, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jFTFFechaDesde, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addGap(31, 31, 31)
                                        .addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE, 90, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                        .addComponent(jFTFFechaHasta, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                        .addGap(25, 25, 25))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel31)
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jRBDenegadas)
                            .addComponent(jRBTodas)
                            .addComponent(jRBAutorizadas)
                            .addComponent(jRBPendientesEval))
                        .addGap(246, 246, 246))))
            .addGroup(layout.createSequentialGroup()
                .addGap(38, 38, 38)
                .addComponent(jLabel47, javax.swing.GroupLayout.DEFAULT_SIZE, 185, Short.MAX_VALUE)
                .addGap(18, 18, 18)
                .addComponent(jCBEstudioMorosidad, javax.swing.GroupLayout.PREFERRED_SIZE, 283, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(71, 71, 71))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(249, Short.MAX_VALUE)
                .addComponent(jButtonAceptar)
                .addGap(18, 18, 18)
                .addComponent(jButtonCancelar)
                .addGap(168, 168, 168))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel36)
                    .addComponent(jTFIdCliente, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(24, 24, 24)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel38)
                            .addComponent(jCBTipoDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel40)
                            .addComponent(jTFNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel41)
                            .addComponent(jTFApellidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jLabel39)
                    .addComponent(jTFNumDocumento, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel45)
                    .addComponent(jFTFFechaDesde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel46)
                    .addComponent(jFTFFechaHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel42)
                    .addComponent(jCBTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel29)
                    .addComponent(jFTFImporteDesde, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel30)
                    .addComponent(jFTFImporteHasta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jRBTodas)
                    .addComponent(jLabel31))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jRBAutorizadas)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jRBDenegadas)
                .addGap(6, 6, 6)
                .addComponent(jRBPendientesEval)
                .addGap(18, 18, 18)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCBEstudioMorosidad, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel47))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButtonAceptar)
                    .addComponent(jButtonCancelar))
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButtonAceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonAceptarActionPerformed
        //Actualizo la vista de los datos en el formulario padre con la condición especificada
        this._frmPadre.actualizarVista(this.formaCondicionWhere());
        //Ocultar la ventana solo si el resultado ha sido OK.
        setVisible(false);
}//GEN-LAST:event_jButtonAceptarActionPerformed

    private void jButtonCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButtonCancelarActionPerformed
        setVisible( false );
}//GEN-LAST:event_jButtonCancelarActionPerformed

    private void jCBTipoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBTipoActionPerformed
}//GEN-LAST:event_jCBTipoActionPerformed

    private void jRBTodasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBTodasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRBTodasActionPerformed

    private void jRBDenegadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBDenegadasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRBDenegadasActionPerformed

    private void jRBAutorizadasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBAutorizadasActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRBAutorizadasActionPerformed

    private void jRBPendientesEvalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jRBPendientesEvalActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jRBPendientesEvalActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JButton jButtonAceptar;
    private javax.swing.JButton jButtonCancelar;
    private javax.swing.JComboBox jCBEstudioMorosidad;
    private javax.swing.JComboBox jCBTipo;
    private javax.swing.JComboBox jCBTipoDocumento;
    private javax.swing.JFormattedTextField jFTFFechaDesde;
    private javax.swing.JFormattedTextField jFTFFechaHasta;
    private javax.swing.JFormattedTextField jFTFImporteDesde;
    private javax.swing.JFormattedTextField jFTFImporteHasta;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JRadioButton jRBAutorizadas;
    private javax.swing.JRadioButton jRBDenegadas;
    private javax.swing.JRadioButton jRBPendientesEval;
    private javax.swing.JRadioButton jRBTodas;
    private javax.swing.JTextField jTFApellidos;
    private javax.swing.JFormattedTextField jTFIdCliente;
    private javax.swing.JTextField jTFNombre;
    private javax.swing.JTextField jTFNumDocumento;
    // End of variables declaration//GEN-END:variables

}
